class GenericResponse {
  GenericResponse({
    this.errorMessage,
    this.errorCode,
    this.timestamp,
    this.payload,
    this.success,
  });

  GenericResponse.fromJson(dynamic json) {
    errorCode = json['errorCode'];
    errorMessage = json['errorMessage'];
    timestamp = json['timestamp'];
    payload = json['payload'];
    success = json['success'];
  }

  num? errorCode;
  String? errorMessage;
  int? timestamp;
  dynamic payload;
  bool? success;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['errorCode'] = errorCode;
    map['errorMessage'] = errorMessage;
    map['timestamp'] = timestamp;
    map['payload'] = payload;
    map['success'] = success;
    return map;
  }
}
